ArcPad Applet File Schema
APPLET Element
See Also  Send comments on this topic.
ArcPad Applet File Schema > ArcPad Element : APPLET Element

Glossary Item Box

Description

Used in applet (*.apa) to define ArcPad applets.

Diagram

TOOLBARS Element SYSTEMOBJECTS Element FORMS Element Sequence APPLET Element

Overview

APPLET
Used in applet (*.apa) to define ArcPad applets.
name optional xs:string
onload optional xs:string
Specify the script to run when this event occurs.
Sequence
FORMS
The parent element for defining an ArcPad form.
Sequence
FORM
Used to define an ArcPad form.
SYSTEMOBJECTS
Used in applet (*.apa) files, default configuration (ArcPad.apx) files, and layer definitions to associate scripts with ArcPad system object events.
Sequence
APPLICATION
Used to specify scripts to call when Application object events occur.
AUX

 The parent element for AUX port settings in ArcPadPrefs.apx. Used to specify script subroutines to call when AUX events occur.

GPS
Used to specify GPS preferences and script subroutines to call when GPS events occur.
onaveragestart optional xs:string
Specify the script to run when this event occurs.
onaveragestop optional xs:string
Specify the script to run when this event occurs.
onclose optional xs:string
Specify the script to run when this event occurs
onexevent optional xs:string
Specify the script to run when this event occurs.
onopen optional xs:string
Specify the script to run when this event occurs
onposition optional xs:string
Specify the script to run when this event occurs.
onsentence optional xs:string
Specify the script to run when this event occurs.
MAP
When parent element is SYSTEMOBJECTS, MAP is used to specify scripts to call when Map object events occur.
onafterdraw optional xs:string
Specify the script to run when this event occurs.
onafterlayerdraw optional xs:string
Specify the script to run when this event occurs.
onbeforedraw optional xs:string
Specify the script to run when this event occurs.
onbeforelayerdraw optional xs:string
Specify the script to run when this event occurs.
onclose optional xs:string
Specify the script to run when this event occurs
ondrawingcancelled optional xs:string
Specify the script to run when this event occurs.
onfeatureadded optional xs:string
Specify the script to run when this event occurs.
onfeaturechanged optional xs:string
Specify the script to run when this event occurs.
onfeaturedeleted optional xs:string
Specify the script to run when this event occurs.
onfeaturegeometrychanged optional xs:string
Specify the script to run when this event occurs.
onidentify optional xs:string
Specify the script to run when this event occurs.
onnew optional xs:string
Specify the script to run when this event occurs.
onopen optional xs:string
Specify the script to run when this event occurs
onpointerdown optional xs:string
Specify the script to run when this event occurs.
onpointermodechanged optional
Specify the script to run when this event occurs.
onpointermove optional xs:string
Specify the script to run when this event occurs.
onpointerup optional xs:string
Specify the script to run when this event occurs.
onsave optional xs:string
Specify the script to run when this event occurs.
onselectionchanged optional xs:string
Specify the script to run when this event occurs.
NAVIGATION
Used to specify scripts to call when Navigation object events occur.
onclose optional xs:string
Specify the script to run when this event occurs
onexevent optional xs:string
Specify the script to run when this event occurs.
onmeasurement optional xs:string
Specify the script to run when this event occurs.
onopen optional xs:string
Specify the script to run when this event occurs
TOOLBARS
The parent element for all ArcPad toolbars.
Sequence
TOOLBAR 1..∞
Used to define a toolbar.

Attributes

NameTypeUseDefaultFixedDescription
namexs:stringoptional   
onloadxs:stringoptional  Specify the script to run when this event occurs.

Remarks

Although none of the child elements are required, an applet must contain at least one of these elements to perform any tasks.

Examples

Source

<xs:element name="APPLET" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:complexType>
    <xs:sequence>
      <xs:element name="FORMS">
        <xs:annotation>
          <xs:documentation>The parent element for defining an ArcPad form.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element ref="FORM" />
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="SYSTEMOBJECTS">
        <xs:complexType>
          <xs:sequence>
            <xs:element ref="APPLICATION" />
            <xs:element ref="AUX" />
            <xs:element name="GPS">
              <xs:complexType>
                <xs:attribute ref="onaveragestart" />
                <xs:attribute ref="onaveragestop" />
                <xs:attribute ref="onclose" />
                <xs:attribute ref="onexevent" />
                <xs:attribute ref="onopen" />
                <xs:attribute ref="onposition" />
                <xs:attribute ref="onsentence" />
              </xs:complexType>
            </xs:element>
            <xs:element name="MAP">
              <xs:complexType>
                <xs:attribute ref="onafterdraw">
                  <xs:annotation>
                    <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
                  </xs:annotation>
                </xs:attribute>
                <xs:attribute ref="onafterlayerdraw" />
                <xs:attribute ref="onbeforedraw">
                  <xs:annotation>
                    <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
                  </xs:annotation>
                </xs:attribute>
                <xs:attribute ref="onbeforelayerdraw">
                  <xs:annotation>
                    <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
                  </xs:annotation>
                </xs:attribute>
                <xs:attribute ref="onclose" />
                <xs:attribute ref="ondrawingcancelled">
                  <xs:annotation>
                    <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
                  </xs:annotation>
                </xs:attribute>
                <xs:attribute ref="onfeatureadded">
                  <xs:annotation>
                    <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
                  </xs:annotation>
                </xs:attribute>
                <xs:attribute ref="onfeaturechanged">
                  <xs:annotation>
                    <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
                  </xs:annotation>
                </xs:attribute>
                <xs:attribute ref="onfeaturedeleted">
                  <xs:annotation>
                    <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
                  </xs:annotation>
                </xs:attribute>
                <xs:attribute ref="onfeaturegeometrychanged">
                  <xs:annotation>
                    <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
                  </xs:annotation>
                </xs:attribute>
                <xs:attribute ref="onidentify">
                  <xs:annotation>
                    <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
                  </xs:annotation>
                </xs:attribute>
                <xs:attribute ref="onnew">
                  <xs:annotation>
                    <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
                  </xs:annotation>
                </xs:attribute>
                <xs:attribute ref="onopen">
                  <xs:annotation>
                    <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
                  </xs:annotation>
                </xs:attribute>
                <xs:attribute ref="onpointerdown">
                  <xs:annotation>
                    <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
                  </xs:annotation>
                </xs:attribute>
                <xs:attribute ref="onpointermodechanged">
                  <xs:annotation>
                    <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
                  </xs:annotation>
                </xs:attribute>
                <xs:attribute ref="onpointermove">
                  <xs:annotation>
                    <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
                  </xs:annotation>
                </xs:attribute>
                <xs:attribute ref="onpointerup">
                  <xs:annotation>
                    <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
                  </xs:annotation>
                </xs:attribute>
                <xs:attribute ref="onsave">
                  <xs:annotation>
                    <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
                  </xs:annotation>
                </xs:attribute>
                <xs:attribute ref="onselectionchanged">
                  <xs:annotation>
                    <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
                  </xs:annotation>
                </xs:attribute>
              </xs:complexType>
            </xs:element>
            <xs:element ref="NAVIGATION"></xs:element>
            <xs:element name="RANGEFINDER">
              <xs:complexType>
                <xs:attribute ref="onclose" />
                <xs:attribute ref="onexevent" />
                <xs:attribute ref="onmeasurement" />
                <xs:attribute ref="onopen" />
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="TOOLBARS">
        <xs:complexType>
          <xs:sequence>
            <xs:element ref="TOOLBAR" maxOccurs="unbounded"></xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute ref="name" />
    <xs:attribute ref="onload" />
  </xs:complexType>
</xs:element>

See Also

© 2012 All Rights Reserved.